<template>
  <div class="addressList">
    <!-- <Head @showMenu="showMn = true" class="header" /> -->
    <Menu :showMenu="showMn" @closeMenu="showMn = false" />
    <div class="page-nav">
      <div class="back-content" @click.stop="goToBack">
        <span class="icon iconfont back">&#xe6dc;</span>
      </div>
      <div class="page-title">Shipping Address</div>
    </div>
    <div class="page-content">
      <div class="page-content-body">
        <myInput v-model="formData[item]" :title="item" v-for="(item,index) in formFileds" :key="index"/>
      </div>
    </div>
    <div  class="submit-btn">SAVE</div>
    
  </div>
</template>

<script>
import Head from "../../../../components/head/header.vue";
import Menu from "../../../../components/menu";
import myInput from "@/components/input";
import { mapState } from "vuex";
export default {
  name: "addressList",
  components: {
    Head,
    Menu,
    myInput,
  },
  computed: {
    ...mapState([
      "bgColor",
      "reviewSearchBgColor",
      "color",
      "nav_bc",
      "main_bc_opacity",
      "main_bc_0_8",
      "main_color_0_1",
      "main_color_0_1_1",
      "main_bc_invert",
      "content_bc",
      "sub_color",
      "text_color",
      "dm_bc",
      "price_border",
      "main_bc_color",
      "item_bc",
      "menu_color",
      "unboxing_im_bc",
      "menu_d_bg",
      "menu_border",
      "pop_bg",
      "main_bc_color",
      "tab_bc",
    ]),
  },
  mounted() {
    this.active = this.$route.query.type;
  },
  data() {
    return {
      formData:{
        email: "",
      },

      formFileds:[
        "Email",
        "First name",
        "Last name",
        "Street address",
        "Apartment,suite,etc.(optional)",
        "Country",
        "State",
        "Postal code",
        "City",
        "Phone"
      ],
     
      active: 0,
      showMn: false,
      titles: ["ALL", "CONDUCT", "COMPLETED"],
      data: [],
    };
  },
  mounted() {
    
  },
  methods: {
    goToAdd() {
      this.$router.push({
        name: "addressAdd",
      });
    },
    goToBack() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss" scoped>
.addressList {
  height: 100%;
  width: 100%;
  .header {
    position: relative;
  }
  .page-nav {
    width: 100%;
    height: 52px;
    background: var(--content-bc);
    padding-right: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    // margin-top: 96px;
    color: var(--text-color);
    .back-content {
      width: 40px;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      .back {
        font-size: 22px;
        font-weight: 600;
      }
    }
    .page-title {
      font-size: 16px;
      font-weight: 500;
      margin: auto;
    }
  }
  .page-content {
    padding: 10px 0;
    padding-bottom: 62px;
    box-sizing: border-box;
    .page-content-body {
      display: block;
      background-color: var(--content-bc);
      padding: 15px;
      .input-row {
        width: 100%;
        height: 45px;
        border: 1px solid #999;
        border-radius: 6px;
        margin-bottom: 10px;
        position: relative;
        transition: 0.3s;
      }
    }
  }

  .submit-btn {
    margin-top: 25px;
    width: 100%;
    height: 49px;
    background: linear-gradient(98deg,#f48836,#f4364c 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    bottom: constant(safe-area-inset-bottom);
    bottom: env(safe-area-inset-bottom);
    left: 0;
    z-index: 2;
}
}
</style>